﻿using Adnc.Infra.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace WYT.Sys.Repository.Entities
{
    /// <summary>
    /// 意见反馈
    /// </summary>
    [Table("sys_Feedback"), Comment("意见反馈")]
    public class Feedback : EfEntity
    {
        /// <summary> 
        /// 用户
        /// </summary>
        [Comment("用户")]
        public long User { get; set; }

        /// <summary> 
        /// 电话号码
        /// </summary>
        [Comment("联系电话"),MaxLength(11)]
        public string Tele { get; set; }

        /// <summary> 
        /// 图片
        /// </summary>
        [Comment("图片")]
        public string Picture { get; set; }

        /// <summary> 
        /// 描述
        /// </summary>
        [Comment("描述"),MaxLength(1000)]
        public string? Describe { get; set; }

        /// <summary> 
        /// 是否处理
        /// </summary>
        [Comment("是否已处理")]
        public bool IsHandle { get; set; } = false;

        /// <summary> 
        /// 意见类型 1：性能体验：白屏卡顿、闪退等 2:发货、售后等交易问题 3:功能异常 4:产品建议
        /// </summary>
        [Comment("意见类型 1：性能体验：白屏卡顿、闪退等 2:发货、售后等交易问题 3:功能异常 4:产品建议")]
        public int Mode { get; set; }
    }
}
